class PatientSingleData {
  int? id;
  String? createdTime;
  String? createdBy;
  String? delFlag;
  String? consumerNo;
  String? patientNo;
  String? patientName;
  String? phone;
  String? gender;
  String? birthday;
  dynamic area;
  dynamic areaText;
  String? address;
  dynamic longitude;
  dynamic latitude;
  String? idCardNo;
  String? relation;
  dynamic updateBy;
  dynamic avatarUrl;
  dynamic easemobUuid;
  String? createFrom;
  dynamic height;
  dynamic weight;
  dynamic remark;
  dynamic medicalCardTyp;
  dynamic medicalInsuranceType;
  dynamic easemobToken;
  dynamic habitDietary;
  dynamic habitExercise;
  dynamic habitSleep;
  dynamic habitCigarettesWine;
  dynamic habitSit;
  dynamic habitEmotion;
  dynamic historyAllergic;
  dynamic historyMedical;
  dynamic historyFamily;
  dynamic historyMedication;
  dynamic tagsFromDoctor;
  int? stat;
  dynamic idCardImage01;
  dynamic idCardImage02;
  dynamic phone2;
  dynamic mainDiseases;
  dynamic homeDoctor;
  dynamic smokingHistory;
  dynamic drinkingStatus;
  dynamic hypertension;
  dynamic diabetes;
  dynamic heartDisease;
  dynamic economicStatus;
  dynamic children;
  dynamic vision;
  dynamic walkingStatus;
  dynamic armyHome;
  String? isDefault;
  dynamic domicile;
  dynamic nation;
  dynamic nationality;
  dynamic educationLevel;
  dynamic marital;
  dynamic work;
  dynamic workUnit;
  dynamic emergencyContact;
  dynamic domicileType;
  dynamic medicalUnit;
  dynamic bloodType;
  dynamic rhYx;
  int? signFlag;

  PatientSingleData(
      {this.id,
      this.createdTime,
      this.createdBy,
      this.delFlag,
      this.consumerNo,
      this.patientNo,
      this.patientName,
      this.phone,
      this.gender,
      this.birthday,
      this.area,
      this.areaText,
      this.address,
      this.longitude,
      this.latitude,
      this.idCardNo,
      this.relation,
      this.updateBy,
      this.avatarUrl,
      this.easemobUuid,
      this.createFrom,
      this.height,
      this.weight,
      this.remark,
      this.medicalCardTyp,
      this.medicalInsuranceType,
      this.easemobToken,
      this.habitDietary,
      this.habitExercise,
      this.habitSleep,
      this.habitCigarettesWine,
      this.habitSit,
      this.habitEmotion,
      this.historyAllergic,
      this.historyMedical,
      this.historyFamily,
      this.historyMedication,
      this.tagsFromDoctor,
      this.stat,
      this.idCardImage01,
      this.idCardImage02,
      this.phone2,
      this.mainDiseases,
      this.homeDoctor,
      this.smokingHistory,
      this.drinkingStatus,
      this.hypertension,
      this.diabetes,
      this.heartDisease,
      this.economicStatus,
      this.children,
      this.vision,
      this.walkingStatus,
      this.armyHome,
      this.isDefault,
      this.domicile,
      this.nation,
      this.nationality,
      this.educationLevel,
      this.marital,
      this.work,
      this.workUnit,
      this.emergencyContact,
      this.domicileType,
      this.medicalUnit,
      this.bloodType,
      this.rhYx,
      this.signFlag});

  PatientSingleData.fromJson(Map<String, dynamic> json) {
    if (json["id"] is int) {
      id = json["id"];
    }
    if (json["createdTime"] is String) {
      createdTime = json["createdTime"];
    }
    if (json["createdBy"] is String) {
      createdBy = json["createdBy"];
    }
    if (json["delFlag"] is String) {
      delFlag = json["delFlag"];
    }
    if (json["consumerNo"] is String) {
      consumerNo = json["consumerNo"];
    }
    if (json["patientNo"] is String) {
      patientNo = json["patientNo"];
    }
    if (json["patientName"] is String) {
      patientName = json["patientName"];
    }
    if (json["phone"] is String) {
      phone = json["phone"];
    }
    if (json["gender"] is String) {
      gender = json["gender"];
    }
    if (json["birthday"] is String) {
      birthday = json["birthday"];
    }
    area = json["area"];
    areaText = json["areaText"];
    if (json["address"] is String) {
      address = json["address"];
    }
    longitude = json["longitude"];
    latitude = json["latitude"];
    if (json["idCardNo"] is String) {
      idCardNo = json["idCardNo"];
    }
    if (json["relation"] is String) {
      relation = json["relation"];
    }
    updateBy = json["updateBy"];
    avatarUrl = json["avatarUrl"];
    easemobUuid = json["easemobUuid"];
    if (json["createFrom"] is String) {
      createFrom = json["createFrom"];
    }
    height = json["height"];
    weight = json["weight"];
    remark = json["remark"];
    medicalCardTyp = json["medicalCardTyp"];
    medicalInsuranceType = json["medicalInsuranceType"];
    easemobToken = json["easemobToken"];
    habitDietary = json["habitDietary"];
    habitExercise = json["habitExercise"];
    habitSleep = json["habitSleep"];
    habitCigarettesWine = json["habitCigarettesWine"];
    habitSit = json["habitSit"];
    habitEmotion = json["habitEmotion"];
    historyAllergic = json["historyAllergic"];
    historyMedical = json["historyMedical"];
    historyFamily = json["historyFamily"];
    historyMedication = json["historyMedication"];
    tagsFromDoctor = json["tagsFromDoctor"];
    if (json["stat"] is int) {
      stat = json["stat"];
    }
    idCardImage01 = json["idCardImage01"];
    idCardImage02 = json["idCardImage02"];
    phone2 = json["phone2"];
    mainDiseases = json["mainDiseases"];
    homeDoctor = json["homeDoctor"];
    smokingHistory = json["smokingHistory"];
    drinkingStatus = json["drinkingStatus"];
    hypertension = json["hypertension"];
    diabetes = json["diabetes"];
    heartDisease = json["heartDisease"];
    economicStatus = json["economicStatus"];
    children = json["children"];
    vision = json["vision"];
    walkingStatus = json["walkingStatus"];
    armyHome = json["armyHome"];
    if (json["isDefault"] is String) {
      isDefault = json["isDefault"];
    }
    domicile = json["domicile"];
    nation = json["nation"];
    nationality = json["nationality"];
    educationLevel = json["educationLevel"];
    marital = json["marital"];
    work = json["work"];
    workUnit = json["workUnit"];
    emergencyContact = json["emergencyContact"];
    domicileType = json["domicileType"];
    medicalUnit = json["medicalUnit"];
    bloodType = json["bloodType"];
    rhYx = json["rhYx"];
    signFlag=json['signFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["createdTime"] = createdTime;
    _data["createdBy"] = createdBy;
    _data["delFlag"] = delFlag;
    _data["consumerNo"] = consumerNo;
    _data["patientNo"] = patientNo;
    _data["patientName"] = patientName;
    _data["phone"] = phone;
    _data["gender"] = gender;
    _data["birthday"] = birthday;
    _data["area"] = area;
    _data["areaText"] = areaText;
    _data["address"] = address;
    _data["longitude"] = longitude;
    _data["latitude"] = latitude;
    _data["idCardNo"] = idCardNo;
    _data["relation"] = relation;
    _data["updateBy"] = updateBy;
    _data["avatarUrl"] = avatarUrl;
    _data["easemobUuid"] = easemobUuid;
    _data["createFrom"] = createFrom;
    _data["height"] = height;
    _data["weight"] = weight;
    _data["remark"] = remark;
    _data["medicalCardTyp"] = medicalCardTyp;
    _data["medicalInsuranceType"] = medicalInsuranceType;
    _data["easemobToken"] = easemobToken;
    _data["habitDietary"] = habitDietary;
    _data["habitExercise"] = habitExercise;
    _data["habitSleep"] = habitSleep;
    _data["habitCigarettesWine"] = habitCigarettesWine;
    _data["habitSit"] = habitSit;
    _data["habitEmotion"] = habitEmotion;
    _data["historyAllergic"] = historyAllergic;
    _data["historyMedical"] = historyMedical;
    _data["historyFamily"] = historyFamily;
    _data["historyMedication"] = historyMedication;
    _data["tagsFromDoctor"] = tagsFromDoctor;
    _data["stat"] = stat;
    _data["idCardImage01"] = idCardImage01;
    _data["idCardImage02"] = idCardImage02;
    _data["phone2"] = phone2;
    _data["mainDiseases"] = mainDiseases;
    _data["homeDoctor"] = homeDoctor;
    _data["smokingHistory"] = smokingHistory;
    _data["drinkingStatus"] = drinkingStatus;
    _data["hypertension"] = hypertension;
    _data["diabetes"] = diabetes;
    _data["heartDisease"] = heartDisease;
    _data["economicStatus"] = economicStatus;
    _data["children"] = children;
    _data["vision"] = vision;
    _data["walkingStatus"] = walkingStatus;
    _data["armyHome"] = armyHome;
    _data["isDefault"] = isDefault;
    _data["domicile"] = domicile;
    _data["nation"] = nation;
    _data["nationality"] = nationality;
    _data["educationLevel"] = educationLevel;
    _data["marital"] = marital;
    _data["work"] = work;
    _data["workUnit"] = workUnit;
    _data["emergencyContact"] = emergencyContact;
    _data["domicileType"] = domicileType;
    _data["medicalUnit"] = medicalUnit;
    _data["bloodType"] = bloodType;
    _data["rhYx"] = rhYx;
    _data["signFlag"]=signFlag;
    return _data;
  }
}
